package net.ifilm.dao;

import com.ibatis.sqlmap.client.SqlMapClient;
import net.ifilm.entity.PageCount;
import net.ifilm.entity.SystemParam;
import net.ifilm.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public class UserDao extends SqlMapClientDaoSupport {
    
    @Autowired
    public void setSqlMapClientOverride(SqlMapClient sqlMapClient) {
        super.setSqlMapClient(sqlMapClient);
    }

    /**
     * 查询用户
     *
     * @param pageCount
     * @return
     */
    public List<User> queryUser(PageCount pageCount) {
        return getSqlMapClientTemplate().queryForList("queryUser", pageCount);
    }
    
} // /:~
